// 代理
const proxy = require('http-proxy-middleware')

module.exports = (app) => {
    app.use(
        proxy('/api1',
            {
                target: 'https://zxwytd.hzxh.gov.cn',
                changeOrigin: true,
                pathRewrite: {
                    '^/api1': ''
                }
            }
        ),
    )
}